import request from "../util/request";
export function getUserInfo(params){
    return request({
        method:"post",
        url:"/chat/api/user/getUserInfo",
        params:params
    })
}
export function login(params){
    return request({
        method:"post",
        url:"/chat/api/user/login",
        params:params
    })
}

export function updateUser(params){
    return request({
        method:"post",
        url:"/chat/api/user/updateUser",
        params:params
    })
}

export function getHistoryList(params){
    return request({
        method:"post",
        url:"/chat/api/chat/historyList",
        params:params
    })
}
export function setHisotryPeriod(params){
    return request({
        method:"post",
        url:"/chat/api/user/updateUserRetentionPeriod",
        params:params
    })
}
export function clearHistory(){
    return request({
        method:"post",
        url:"/chat/api/chat/clearHistory"
    })
}
export function getLeftHistoryList(){
    return request({
        method:"post",
        url:"/chat/api/chat/leftHistoryList",
    })
}
